package moltencore.network.protocol;

import spark.network.protocol.Base;
import spark.network.Util;

public class CannonFire extends Base {
	public static final short TYPE = 0x51;
	private static final byte[] TYPE_BYTES = Util.makeBytes(TYPE);

	public CannonFire() {
		super(true, TYPE_BYTES);
	}

	public static CannonFire create(byte[] buffer, long receiveTime) {
		CannonFire packet = new CannonFire();
		packet.fill(buffer);
		packet.setTimeStampReceive(receiveTime);
		return packet;
	}
}
